Integrand size = 23, antiderivative size = 265 \[ \int \frac {\cot ^2(c+d x)}{(a+a \sec (c+d x))^{5/2}} \, dx=-\frac {2 \arctan \left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{a^{5/2} d}+\frac {319 \arctan \left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {2} \sqrt {a+a \sec (c+d x)}}\right )}{128 \sqrt {2} a^{5/2} d}+\frac {63 \cot (c+d x) \sqrt {a+a \sec (c+d x)}}{128 a^3 d}-\frac {191 \cos (c+d x) \cot (c+d x) \sec ^2\left (\frac {1}{2} (c+d x)\right ) \sqrt {a+a \sec (c+d x)}}{384 a^3 d}-\frac {19 \cos ^2(c+d x) \cot (c+d x) \sec ^4\left (\frac {1}{2} (c+d x)\right ) \sqrt {a+a \sec (c+d x)}}{192 a^3 d}-\frac {\cos ^3(c+d x) \cot (c+d x) \sec ^6\left (\frac {1}{2} (c+d x)\right ) \sqrt {a+a \sec (c+d x)}}{48 a^3 d} \]
-2*arctan(a^(1/2)*tan(d*x+c)/(a+a*sec(d*x+c))^(1/2))/a^(5/2)/d+319/256*arc tan(1/2*a^(1/2)*tan(d*x+c)*2^(1/2)/(a+a*sec(d*x+c))^(1/2))*2^(1/2)/a^(5/2) /d+63/128*cot(d*x+c)*(a+a*sec(d*x+c))^(1/2)/a^3/d-191/384*cos(d*x+c)*cot(d *x+c)*sec(1/2*d*x+1/2*c)^2*(a+a*sec(d*x+c))^(1/2)/a^3/d-19/192*cos(d*x+c)^ 2*cot(d*x+c)*sec(1/2*d*x+1/2*c)^4*(a+a*sec(d*x+c))^(1/2)/a^3/d-1/48*cos(d* x+c)^3*cot(d*x+c)*sec(1/2*d*x+1/2*c)^6*(a+a*sec(d*x+c))^(1/2)/a^3/d
Time = 5.56 (sec) , antiderivative size = 232, normalized size of antiderivative = 0.88 \[ \int \frac {\cot ^2(c+d x)}{(a+a \sec (c+d x))^{5/2}} \, dx=\frac {\cos ^6\left (\frac {1}{2} (c+d x)\right ) \sec ^2(c+d x) \left (-\left ((-58+487 \cos (c+d x)+698 \cos (2 (c+d x))+409 \cos (3 (c+d x))) \csc \left (\frac {1}{2} (c+d x)\right ) \sec ^7\left (\frac {1}{2} (c+d x)\right )\right )-49152 \arctan \left (\frac {\tan \left (\frac {1}{2} (c+d x)\right )}{\sqrt {\frac {1}{1+\sec (c+d x)}}}\right ) \sqrt {\sec (c+d x)} \sqrt {\frac {\sec (c+d x)}{(1+\sec (c+d x))^2}} \sqrt {1+\sec (c+d x)}+30624 \arcsin \left (\tan \left (\frac {1}{2} (c+d x)\right )\right ) \sqrt {\sec ^2\left (\frac {1}{2} (c+d x)\right )} \sqrt {\sec (c+d x)} \sqrt {\frac {1}{1+\sec (c+d x)}} \sqrt {1+\sec (c+d x)}\right )}{3072 d (a (1+\sec (c+d x)))^{5/2}} \]
(Cos[(c + d*x)/2]^6*Sec[c + d*x]^2*(-((-58 + 487*Cos[c + d*x] + 698*Cos[2* (c + d*x)] + 409*Cos[3*(c + d*x)])*Csc[(c + d*x)/2]*Sec[(c + d*x)/2]^7) - 49152*ArcTan[Tan[(c + d*x)/2]/Sqrt[(1 + Sec[c + d*x])^(-1)]]*Sqrt[Sec[c + d*x]]*Sqrt[Sec[c + d*x]/(1 + Sec[c + d*x])^2]*Sqrt[1 + Sec[c + d*x]] + 306 24*ArcSin[Tan[(c + d*x)/2]]*Sqrt[Sec[(c + d*x)/2]^2]*Sqrt[Sec[c + d*x]]*Sq rt[(1 + Sec[c + d*x])^(-1)]*Sqrt[1 + Sec[c + d*x]]))/(3072*d*(a*(1 + Sec[c + d*x]))^(5/2))
Time = 0.43 (sec) , antiderivative size = 282, normalized size of antiderivative = 1.06, number of steps used = 14, number of rules used = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.565, Rules used = {3042, 4375, 374, 27, 441, 27, 441, 27, 445, 25, 27, 397, 216}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {\cot ^2(c+d x)}{(a \sec (c+d x)+a)^{5/2}} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {1}{\cot \left (c+d x+\frac {\pi }{2}\right )^2 \left (a \csc \left (c+d x+\frac {\pi }{2}\right )+a\right )^{5/2}}dx\) |
\(\Big \downarrow \) 4375 |
\(\displaystyle -\frac {2 \int \frac {\cot ^2(c+d x) (\sec (c+d x) a+a)}{\left (\frac {a \tan ^2(c+d x)}{\sec (c+d x) a+a}+1\right ) \left (\frac {a \tan ^2(c+d x)}{\sec (c+d x) a+a}+2\right )^4}d\left (-\frac {\tan (c+d x)}{\sqrt {\sec (c+d x) a+a}}\right )}{a^3 d}\) |
\(\Big \downarrow \) 374 |
\(\displaystyle -\frac {2 \left (\frac {\int \frac {a \cot ^2(c+d x) (\sec (c+d x) a+a) \left (5-\frac {7 a \tan ^2(c+d x)}{\sec (c+d x) a+a}\right )}{\left (\frac {a \tan ^2(c+d x)}{\sec (c+d x) a+a}+1\right ) \left (\frac {a \tan ^2(c+d x)}{\sec (c+d x) a+a}+2\right )^3}d\left (-\frac {\tan (c+d x)}{\sqrt {\sec (c+d x) a+a}}\right )}{12 a}+\frac {\cot (c+d x) \sqrt {a \sec (c+d x)+a}}{12 \left (\frac {a \tan ^2(c+d x)}{a \sec (c+d x)+a}+2\right )^3}\right )}{a^3 d}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle -\frac {2 \left (\frac {1}{12} \int \frac {\cot ^2(c+d x) (\sec (c+d x) a+a) \left (5-\frac {7 a \tan ^2(c+d x)}{\sec (c+d x) a+a}\right )}{\left (\frac {a \tan ^2(c+d x)}{\sec (c+d x) a+a}+1\right ) \left (\frac {a \tan ^2(c+d x)}{\sec (c+d x) a+a}+2\right )^3}d\left (-\frac {\tan (c+d x)}{\sqrt {\sec (c+d x) a+a}}\right )+\frac {\cot (c+d x) \sqrt {a \sec (c+d x)+a}}{12 \left (\frac {a \tan ^2(c+d x)}{a \sec (c+d x)+a}+2\right )^3}\right )}{a^3 d}\) |
\(\Big \downarrow \) 441 |
\(\displaystyle -\frac {2 \left (\frac {1}{12} \left (\frac {\int \frac {a \cot ^2(c+d x) (\sec (c+d x) a+a) \left (1-\frac {95 a \tan ^2(c+d x)}{\sec (c+d x) a+a}\right )}{\left (\frac {a \tan ^2(c+d x)}{\sec (c+d x) a+a}+1\right ) \left (\frac {a \tan ^2(c+d x)}{\sec (c+d x) a+a}+2\right )^2}d\left (-\frac {\tan (c+d x)}{\sqrt {\sec (c+d x) a+a}}\right )}{8 a}+\frac {19 \cot (c+d x) \sqrt {a \sec (c+d x)+a}}{8 \left (\frac {a \tan ^2(c+d x)}{a \sec (c+d x)+a}+2\right )^2}\right )+\frac {\cot (c+d x) \sqrt {a \sec (c+d x)+a}}{12 \left (\frac {a \tan ^2(c+d x)}{a \sec (c+d x)+a}+2\right )^3}\right )}{a^3 d}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle -\frac {2 \left (\frac {1}{12} \left (\frac {1}{8} \int \frac {\cot ^2(c+d x) (\sec (c+d x) a+a) \left (1-\frac {95 a \tan ^2(c+d x)}{\sec (c+d x) a+a}\right )}{\left (\frac {a \tan ^2(c+d x)}{\sec (c+d x) a+a}+1\right ) \left (\frac {a \tan ^2(c+d x)}{\sec (c+d x) a+a}+2\right )^2}d\left (-\frac {\tan (c+d x)}{\sqrt {\sec (c+d x) a+a}}\right )+\frac {19 \cot (c+d x) \sqrt {a \sec (c+d x)+a}}{8 \left (\frac {a \tan ^2(c+d x)}{a \sec (c+d x)+a}+2\right )^2}\right )+\frac {\cot (c+d x) \sqrt {a \sec (c+d x)+a}}{12 \left (\frac {a \tan ^2(c+d x)}{a \sec (c+d x)+a}+2\right )^3}\right )}{a^3 d}\) |
\(\Big \downarrow \) 441 |
\(\displaystyle -\frac {2 \left (\frac {1}{12} \left (\frac {1}{8} \left (\frac {\int -\frac {3 a \cot ^2(c+d x) (\sec (c+d x) a+a) \left (\frac {191 a \tan ^2(c+d x)}{\sec (c+d x) a+a}+63\right )}{\left (\frac {a \tan ^2(c+d x)}{\sec (c+d x) a+a}+1\right ) \left (\frac {a \tan ^2(c+d x)}{\sec (c+d x) a+a}+2\right )}d\left (-\frac {\tan (c+d x)}{\sqrt {\sec (c+d x) a+a}}\right )}{4 a}+\frac {191 \cot (c+d x) \sqrt {a \sec (c+d x)+a}}{4 \left (\frac {a \tan ^2(c+d x)}{a \sec (c+d x)+a}+2\right )}\right )+\frac {19 \cot (c+d x) \sqrt {a \sec (c+d x)+a}}{8 \left (\frac {a \tan ^2(c+d x)}{a \sec (c+d x)+a}+2\right )^2}\right )+\frac {\cot (c+d x) \sqrt {a \sec (c+d x)+a}}{12 \left (\frac {a \tan ^2(c+d x)}{a \sec (c+d x)+a}+2\right )^3}\right )}{a^3 d}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle -\frac {2 \left (\frac {1}{12} \left (\frac {1}{8} \left (\frac {191 \cot (c+d x) \sqrt {a \sec (c+d x)+a}}{4 \left (\frac {a \tan ^2(c+d x)}{a \sec (c+d x)+a}+2\right )}-\frac {3}{4} \int \frac {\cot ^2(c+d x) (\sec (c+d x) a+a) \left (\frac {191 a \tan ^2(c+d x)}{\sec (c+d x) a+a}+63\right )}{\left (\frac {a \tan ^2(c+d x)}{\sec (c+d x) a+a}+1\right ) \left (\frac {a \tan ^2(c+d x)}{\sec (c+d x) a+a}+2\right )}d\left (-\frac {\tan (c+d x)}{\sqrt {\sec (c+d x) a+a}}\right )\right )+\frac {19 \cot (c+d x) \sqrt {a \sec (c+d x)+a}}{8 \left (\frac {a \tan ^2(c+d x)}{a \sec (c+d x)+a}+2\right )^2}\right )+\frac {\cot (c+d x) \sqrt {a \sec (c+d x)+a}}{12 \left (\frac {a \tan ^2(c+d x)}{a \sec (c+d x)+a}+2\right )^3}\right )}{a^3 d}\) |
\(\Big \downarrow \) 445 |
\(\displaystyle -\frac {2 \left (\frac {1}{12} \left (\frac {1}{8} \left (\frac {191 \cot (c+d x) \sqrt {a \sec (c+d x)+a}}{4 \left (\frac {a \tan ^2(c+d x)}{a \sec (c+d x)+a}+2\right )}-\frac {3}{4} \left (\frac {63}{2} \cot (c+d x) \sqrt {a \sec (c+d x)+a}-\frac {1}{2} \int -\frac {a \left (193-\frac {63 a \tan ^2(c+d x)}{\sec (c+d x) a+a}\right )}{\left (\frac {a \tan ^2(c+d x)}{\sec (c+d x) a+a}+1\right ) \left (\frac {a \tan ^2(c+d x)}{\sec (c+d x) a+a}+2\right )}d\left (-\frac {\tan (c+d x)}{\sqrt {\sec (c+d x) a+a}}\right )\right )\right )+\frac {19 \cot (c+d x) \sqrt {a \sec (c+d x)+a}}{8 \left (\frac {a \tan ^2(c+d x)}{a \sec (c+d x)+a}+2\right )^2}\right )+\frac {\cot (c+d x) \sqrt {a \sec (c+d x)+a}}{12 \left (\frac {a \tan ^2(c+d x)}{a \sec (c+d x)+a}+2\right )^3}\right )}{a^3 d}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle -\frac {2 \left (\frac {1}{12} \left (\frac {1}{8} \left (\frac {191 \cot (c+d x) \sqrt {a \sec (c+d x)+a}}{4 \left (\frac {a \tan ^2(c+d x)}{a \sec (c+d x)+a}+2\right )}-\frac {3}{4} \left (\frac {1}{2} \int \frac {a \left (193-\frac {63 a \tan ^2(c+d x)}{\sec (c+d x) a+a}\right )}{\left (\frac {a \tan ^2(c+d x)}{\sec (c+d x) a+a}+1\right ) \left (\frac {a \tan ^2(c+d x)}{\sec (c+d x) a+a}+2\right )}d\left (-\frac {\tan (c+d x)}{\sqrt {\sec (c+d x) a+a}}\right )+\frac {63}{2} \cot (c+d x) \sqrt {a \sec (c+d x)+a}\right )\right )+\frac {19 \cot (c+d x) \sqrt {a \sec (c+d x)+a}}{8 \left (\frac {a \tan ^2(c+d x)}{a \sec (c+d x)+a}+2\right )^2}\right )+\frac {\cot (c+d x) \sqrt {a \sec (c+d x)+a}}{12 \left (\frac {a \tan ^2(c+d x)}{a \sec (c+d x)+a}+2\right )^3}\right )}{a^3 d}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle -\frac {2 \left (\frac {1}{12} \left (\frac {1}{8} \left (\frac {191 \cot (c+d x) \sqrt {a \sec (c+d x)+a}}{4 \left (\frac {a \tan ^2(c+d x)}{a \sec (c+d x)+a}+2\right )}-\frac {3}{4} \left (\frac {1}{2} a \int \frac {193-\frac {63 a \tan ^2(c+d x)}{\sec (c+d x) a+a}}{\left (\frac {a \tan ^2(c+d x)}{\sec (c+d x) a+a}+1\right ) \left (\frac {a \tan ^2(c+d x)}{\sec (c+d x) a+a}+2\right )}d\left (-\frac {\tan (c+d x)}{\sqrt {\sec (c+d x) a+a}}\right )+\frac {63}{2} \cot (c+d x) \sqrt {a \sec (c+d x)+a}\right )\right )+\frac {19 \cot (c+d x) \sqrt {a \sec (c+d x)+a}}{8 \left (\frac {a \tan ^2(c+d x)}{a \sec (c+d x)+a}+2\right )^2}\right )+\frac {\cot (c+d x) \sqrt {a \sec (c+d x)+a}}{12 \left (\frac {a \tan ^2(c+d x)}{a \sec (c+d x)+a}+2\right )^3}\right )}{a^3 d}\) |
\(\Big \downarrow \) 397 |
\(\displaystyle -\frac {2 \left (\frac {1}{12} \left (\frac {1}{8} \left (\frac {191 \cot (c+d x) \sqrt {a \sec (c+d x)+a}}{4 \left (\frac {a \tan ^2(c+d x)}{a \sec (c+d x)+a}+2\right )}-\frac {3}{4} \left (\frac {1}{2} a \left (256 \int \frac {1}{\frac {a \tan ^2(c+d x)}{\sec (c+d x) a+a}+1}d\left (-\frac {\tan (c+d x)}{\sqrt {\sec (c+d x) a+a}}\right )-319 \int \frac {1}{\frac {a \tan ^2(c+d x)}{\sec (c+d x) a+a}+2}d\left (-\frac {\tan (c+d x)}{\sqrt {\sec (c+d x) a+a}}\right )\right )+\frac {63}{2} \cot (c+d x) \sqrt {a \sec (c+d x)+a}\right )\right )+\frac {19 \cot (c+d x) \sqrt {a \sec (c+d x)+a}}{8 \left (\frac {a \tan ^2(c+d x)}{a \sec (c+d x)+a}+2\right )^2}\right )+\frac {\cot (c+d x) \sqrt {a \sec (c+d x)+a}}{12 \left (\frac {a \tan ^2(c+d x)}{a \sec (c+d x)+a}+2\right )^3}\right )}{a^3 d}\) |
\(\Big \downarrow \) 216 |
\(\displaystyle -\frac {2 \left (\frac {1}{12} \left (\frac {1}{8} \left (\frac {191 \cot (c+d x) \sqrt {a \sec (c+d x)+a}}{4 \left (\frac {a \tan ^2(c+d x)}{a \sec (c+d x)+a}+2\right )}-\frac {3}{4} \left (\frac {1}{2} a \left (\frac {319 \arctan \left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {2} \sqrt {a \sec (c+d x)+a}}\right )}{\sqrt {2} \sqrt {a}}-\frac {256 \arctan \left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a \sec (c+d x)+a}}\right )}{\sqrt {a}}\right )+\frac {63}{2} \cot (c+d x) \sqrt {a \sec (c+d x)+a}\right )\right )+\frac {19 \cot (c+d x) \sqrt {a \sec (c+d x)+a}}{8 \left (\frac {a \tan ^2(c+d x)}{a \sec (c+d x)+a}+2\right )^2}\right )+\frac {\cot (c+d x) \sqrt {a \sec (c+d x)+a}}{12 \left (\frac {a \tan ^2(c+d x)}{a \sec (c+d x)+a}+2\right )^3}\right )}{a^3 d}\) |
(-2*((Cot[c + d*x]*Sqrt[a + a*Sec[c + d*x]])/(12*(2 + (a*Tan[c + d*x]^2)/( a + a*Sec[c + d*x]))^3) + ((19*Cot[c + d*x]*Sqrt[a + a*Sec[c + d*x]])/(8*( 2 + (a*Tan[c + d*x]^2)/(a + a*Sec[c + d*x]))^2) + ((-3*((a*((-256*ArcTan[( Sqrt[a]*Tan[c + d*x])/Sqrt[a + a*Sec[c + d*x]]])/Sqrt[a] + (319*ArcTan[(Sq rt[a]*Tan[c + d*x])/(Sqrt[2]*Sqrt[a + a*Sec[c + d*x]])])/(Sqrt[2]*Sqrt[a]) ))/2 + (63*Cot[c + d*x]*Sqrt[a + a*Sec[c + d*x]])/2))/4 + (191*Cot[c + d*x ]*Sqrt[a + a*Sec[c + d*x]])/(4*(2 + (a*Tan[c + d*x]^2)/(a + a*Sec[c + d*x] ))))/8)/12))/(a^3*d)
3.3.4.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[b, 2]))*A rcTan[Rt[b, 2]*(x/Rt[a, 2])], x] /; FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a , 0] || GtQ[b, 0])
Int[((e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2)^(p_)*((c_) + (d_.)*(x_)^2)^(q_ ), x_Symbol] :> Simp[(-b)*(e*x)^(m + 1)*(a + b*x^2)^(p + 1)*((c + d*x^2)^(q + 1)/(a*e*2*(b*c - a*d)*(p + 1))), x] + Simp[1/(a*2*(b*c - a*d)*(p + 1)) Int[(e*x)^m*(a + b*x^2)^(p + 1)*(c + d*x^2)^q*Simp[b*c*(m + 1) + 2*(b*c - a*d)*(p + 1) + d*b*(m + 2*(p + q + 2) + 1)*x^2, x], x], x] /; FreeQ[{a, b, c, d, e, m, q}, x] && NeQ[b*c - a*d, 0] && LtQ[p, -1] && IntBinomialQ[a, b, c, d, e, m, 2, p, q, x]
Int[((e_) + (f_.)*(x_)^2)/(((a_) + (b_.)*(x_)^2)*((c_) + (d_.)*(x_)^2)), x_ Symbol] :> Simp[(b*e - a*f)/(b*c - a*d) Int[1/(a + b*x^2), x], x] - Simp[ (d*e - c*f)/(b*c - a*d) Int[1/(c + d*x^2), x], x] /; FreeQ[{a, b, c, d, e , f}, x]
Int[((g_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2)^(p_)*((c_) + (d_.)*(x_)^2)^(q_ )*((e_) + (f_.)*(x_)^2), x_Symbol] :> Simp[(-(b*e - a*f))*(g*x)^(m + 1)*(a + b*x^2)^(p + 1)*((c + d*x^2)^(q + 1)/(a*g*2*(b*c - a*d)*(p + 1))), x] + Si mp[1/(a*2*(b*c - a*d)*(p + 1)) Int[(g*x)^m*(a + b*x^2)^(p + 1)*(c + d*x^2 )^q*Simp[c*(b*e - a*f)*(m + 1) + e*2*(b*c - a*d)*(p + 1) + d*(b*e - a*f)*(m + 2*(p + q + 2) + 1)*x^2, x], x], x] /; FreeQ[{a, b, c, d, e, f, g, m, q}, x] && LtQ[p, -1]
Int[((g_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^2)^(p_.)*((c_) + (d_.)*(x_)^2)^(q_ .)*((e_) + (f_.)*(x_)^2), x_Symbol] :> Simp[e*(g*x)^(m + 1)*(a + b*x^2)^(p + 1)*((c + d*x^2)^(q + 1)/(a*c*g*(m + 1))), x] + Simp[1/(a*c*g^2*(m + 1)) Int[(g*x)^(m + 2)*(a + b*x^2)^p*(c + d*x^2)^q*Simp[a*f*c*(m + 1) - e*(b*c + a*d)*(m + 2 + 1) - e*2*(b*c*p + a*d*q) - b*e*d*(m + 2*(p + q + 2) + 1)*x^ 2, x], x], x] /; FreeQ[{a, b, c, d, e, f, g, p, q}, x] && LtQ[m, -1]
Int[cot[(c_.) + (d_.)*(x_)]^(m_.)*(csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_))^(n _.), x_Symbol] :> Simp[-2*(a^(m/2 + n + 1/2)/d) Subst[Int[x^m*((2 + a*x^2 )^(m/2 + n - 1/2)/(1 + a*x^2)), x], x, Cot[c + d*x]/Sqrt[a + b*Csc[c + d*x] ]], x] /; FreeQ[{a, b, c, d}, x] && EqQ[a^2 - b^2, 0] && IntegerQ[m/2] && I ntegerQ[n - 1/2]
Leaf count of result is larger than twice the leaf count of optimal. \(588\) vs. \(2(229)=458\).
Time = 1.88 (sec) , antiderivative size = 589, normalized size of antiderivative = 2.22
method | result | size |
default | \(\frac {\sqrt {-\frac {2 a}{\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}}\, \sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}\, \left (-192 \left (\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1\right )^{\frac {11}{2}} \sin \left (d x +c \right )+192 \left (1-\cos \left (d x +c \right )\right )^{2} \left (\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1\right )^{\frac {9}{2}} \csc \left (d x +c \right )-216 \left (1-\cos \left (d x +c \right )\right )^{2} \left (\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1\right )^{\frac {7}{2}} \csc \left (d x +c \right )+24 \left (1-\cos \left (d x +c \right )\right )^{8} \sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}\, \csc \left (d x +c \right )^{7}+252 \left (1-\cos \left (d x +c \right )\right )^{2} \left (\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1\right )^{\frac {5}{2}} \csc \left (d x +c \right )-164 \left (1-\cos \left (d x +c \right )\right )^{6} \sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}\, \csc \left (d x +c \right )^{5}-315 \left (1-\cos \left (d x +c \right )\right )^{2} \left (\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1\right )^{\frac {3}{2}} \csc \left (d x +c \right )+563 \left (1-\cos \left (d x +c \right )\right )^{4} \sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}\, \csc \left (d x +c \right )^{3}-3072 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {2}\, \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right )}{\sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}}\right ) \left (1-\cos \left (d x +c \right )\right )-1179 \left (1-\cos \left (d x +c \right )\right )^{2} \sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}\, \csc \left (d x +c \right )+3828 \ln \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )+\sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}\right ) \left (1-\cos \left (d x +c \right )\right )\right )}{3072 d \,a^{3} \left (1-\cos \left (d x +c \right )\right )}\) | \(589\) |
1/3072/d/a^3*(-2*a/((1-cos(d*x+c))^2*csc(d*x+c)^2-1))^(1/2)*((1-cos(d*x+c) )^2*csc(d*x+c)^2-1)^(1/2)/(1-cos(d*x+c))*(-192*((1-cos(d*x+c))^2*csc(d*x+c )^2-1)^(11/2)*sin(d*x+c)+192*(1-cos(d*x+c))^2*((1-cos(d*x+c))^2*csc(d*x+c) ^2-1)^(9/2)*csc(d*x+c)-216*(1-cos(d*x+c))^2*((1-cos(d*x+c))^2*csc(d*x+c)^2 -1)^(7/2)*csc(d*x+c)+24*(1-cos(d*x+c))^8*((1-cos(d*x+c))^2*csc(d*x+c)^2-1) ^(1/2)*csc(d*x+c)^7+252*(1-cos(d*x+c))^2*((1-cos(d*x+c))^2*csc(d*x+c)^2-1) ^(5/2)*csc(d*x+c)-164*(1-cos(d*x+c))^6*((1-cos(d*x+c))^2*csc(d*x+c)^2-1)^( 1/2)*csc(d*x+c)^5-315*(1-cos(d*x+c))^2*((1-cos(d*x+c))^2*csc(d*x+c)^2-1)^( 3/2)*csc(d*x+c)+563*(1-cos(d*x+c))^4*((1-cos(d*x+c))^2*csc(d*x+c)^2-1)^(1/ 2)*csc(d*x+c)^3-3072*2^(1/2)*arctanh(2^(1/2)/((1-cos(d*x+c))^2*csc(d*x+c)^ 2-1)^(1/2)*(-cot(d*x+c)+csc(d*x+c)))*(1-cos(d*x+c))-1179*(1-cos(d*x+c))^2* ((1-cos(d*x+c))^2*csc(d*x+c)^2-1)^(1/2)*csc(d*x+c)+3828*ln(csc(d*x+c)-cot( d*x+c)+((1-cos(d*x+c))^2*csc(d*x+c)^2-1)^(1/2))*(1-cos(d*x+c)))
Time = 0.38 (sec) , antiderivative size = 691, normalized size of antiderivative = 2.61 \[ \int \frac {\cot ^2(c+d x)}{(a+a \sec (c+d x))^{5/2}} \, dx=\left [-\frac {957 \, \sqrt {2} {\left (\cos \left (d x + c\right )^{3} + 3 \, \cos \left (d x + c\right )^{2} + 3 \, \cos \left (d x + c\right ) + 1\right )} \sqrt {-a} \log \left (\frac {2 \, \sqrt {2} \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right ) \sin \left (d x + c\right ) + 3 \, a \cos \left (d x + c\right )^{2} + 2 \, a \cos \left (d x + c\right ) - a}{\cos \left (d x + c\right )^{2} + 2 \, \cos \left (d x + c\right ) + 1}\right ) \sin \left (d x + c\right ) + 768 \, {\left (\cos \left (d x + c\right )^{3} + 3 \, \cos \left (d x + c\right )^{2} + 3 \, \cos \left (d x + c\right ) + 1\right )} \sqrt {-a} \log \left (-\frac {8 \, a \cos \left (d x + c\right )^{3} - 4 \, {\left (2 \, \cos \left (d x + c\right )^{2} - \cos \left (d x + c\right )\right )} \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right ) - 7 \, a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right ) + 1}\right ) \sin \left (d x + c\right ) + 4 \, {\left (409 \, \cos \left (d x + c\right )^{4} + 349 \, \cos \left (d x + c\right )^{3} - 185 \, \cos \left (d x + c\right )^{2} - 189 \, \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}}}{1536 \, {\left (a^{3} d \cos \left (d x + c\right )^{3} + 3 \, a^{3} d \cos \left (d x + c\right )^{2} + 3 \, a^{3} d \cos \left (d x + c\right ) + a^{3} d\right )} \sin \left (d x + c\right )}, -\frac {957 \, \sqrt {2} {\left (\cos \left (d x + c\right )^{3} + 3 \, \cos \left (d x + c\right )^{2} + 3 \, \cos \left (d x + c\right ) + 1\right )} \sqrt {a} \arctan \left (\frac {\sqrt {2} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right )}{\sqrt {a} \sin \left (d x + c\right )}\right ) \sin \left (d x + c\right ) + 768 \, {\left (\cos \left (d x + c\right )^{3} + 3 \, \cos \left (d x + c\right )^{2} + 3 \, \cos \left (d x + c\right ) + 1\right )} \sqrt {a} \arctan \left (\frac {2 \, \sqrt {a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right ) \sin \left (d x + c\right )}{2 \, a \cos \left (d x + c\right )^{2} + a \cos \left (d x + c\right ) - a}\right ) \sin \left (d x + c\right ) + 2 \, {\left (409 \, \cos \left (d x + c\right )^{4} + 349 \, \cos \left (d x + c\right )^{3} - 185 \, \cos \left (d x + c\right )^{2} - 189 \, \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}}}{768 \, {\left (a^{3} d \cos \left (d x + c\right )^{3} + 3 \, a^{3} d \cos \left (d x + c\right )^{2} + 3 \, a^{3} d \cos \left (d x + c\right ) + a^{3} d\right )} \sin \left (d x + c\right )}\right ] \]
[-1/1536*(957*sqrt(2)*(cos(d*x + c)^3 + 3*cos(d*x + c)^2 + 3*cos(d*x + c) + 1)*sqrt(-a)*log((2*sqrt(2)*sqrt(-a)*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*cos(d*x + c)*sin(d*x + c) + 3*a*cos(d*x + c)^2 + 2*a*cos(d*x + c) - a) /(cos(d*x + c)^2 + 2*cos(d*x + c) + 1))*sin(d*x + c) + 768*(cos(d*x + c)^3 + 3*cos(d*x + c)^2 + 3*cos(d*x + c) + 1)*sqrt(-a)*log(-(8*a*cos(d*x + c)^ 3 - 4*(2*cos(d*x + c)^2 - cos(d*x + c))*sqrt(-a)*sqrt((a*cos(d*x + c) + a) /cos(d*x + c))*sin(d*x + c) - 7*a*cos(d*x + c) + a)/(cos(d*x + c) + 1))*si n(d*x + c) + 4*(409*cos(d*x + c)^4 + 349*cos(d*x + c)^3 - 185*cos(d*x + c) ^2 - 189*cos(d*x + c))*sqrt((a*cos(d*x + c) + a)/cos(d*x + c)))/((a^3*d*co s(d*x + c)^3 + 3*a^3*d*cos(d*x + c)^2 + 3*a^3*d*cos(d*x + c) + a^3*d)*sin( d*x + c)), -1/768*(957*sqrt(2)*(cos(d*x + c)^3 + 3*cos(d*x + c)^2 + 3*cos( d*x + c) + 1)*sqrt(a)*arctan(sqrt(2)*sqrt((a*cos(d*x + c) + a)/cos(d*x + c ))*cos(d*x + c)/(sqrt(a)*sin(d*x + c)))*sin(d*x + c) + 768*(cos(d*x + c)^3 + 3*cos(d*x + c)^2 + 3*cos(d*x + c) + 1)*sqrt(a)*arctan(2*sqrt(a)*sqrt((a *cos(d*x + c) + a)/cos(d*x + c))*cos(d*x + c)*sin(d*x + c)/(2*a*cos(d*x + c)^2 + a*cos(d*x + c) - a))*sin(d*x + c) + 2*(409*cos(d*x + c)^4 + 349*cos (d*x + c)^3 - 185*cos(d*x + c)^2 - 189*cos(d*x + c))*sqrt((a*cos(d*x + c) + a)/cos(d*x + c)))/((a^3*d*cos(d*x + c)^3 + 3*a^3*d*cos(d*x + c)^2 + 3*a^ 3*d*cos(d*x + c) + a^3*d)*sin(d*x + c))]
\[ \int \frac {\cot ^2(c+d x)}{(a+a \sec (c+d x))^{5/2}} \, dx=\int \frac {\cot ^{2}{\left (c + d x \right )}}{\left (a \left (\sec {\left (c + d x \right )} + 1\right )\right )^{\frac {5}{2}}}\, dx \]
\[ \int \frac {\cot ^2(c+d x)}{(a+a \sec (c+d x))^{5/2}} \, dx=\int { \frac {\cot \left (d x + c\right )^{2}}{{\left (a \sec \left (d x + c\right ) + a\right )}^{\frac {5}{2}}} \,d x } \]
Time = 1.08 (sec) , antiderivative size = 177, normalized size of antiderivative = 0.67 \[ \int \frac {\cot ^2(c+d x)}{(a+a \sec (c+d x))^{5/2}} \, dx=\frac {\sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a} {\left (2 \, {\left (\frac {4 \, \sqrt {2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2}}{a^{3} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )} - \frac {31 \, \sqrt {2}}{a^{3} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + \frac {291 \, \sqrt {2}}{a^{3} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - \frac {96 \, \sqrt {2}}{{\left ({\left (\sqrt {-a} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - \sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a}\right )}^{2} - a\right )} \sqrt {-a} a \mathrm {sgn}\left (\cos \left (d x + c\right )\right )}}{768 \, d} \]
1/768*(sqrt(-a*tan(1/2*d*x + 1/2*c)^2 + a)*(2*(4*sqrt(2)*tan(1/2*d*x + 1/2 *c)^2/(a^3*sgn(cos(d*x + c))) - 31*sqrt(2)/(a^3*sgn(cos(d*x + c))))*tan(1/ 2*d*x + 1/2*c)^2 + 291*sqrt(2)/(a^3*sgn(cos(d*x + c))))*tan(1/2*d*x + 1/2* c) - 96*sqrt(2)/(((sqrt(-a)*tan(1/2*d*x + 1/2*c) - sqrt(-a*tan(1/2*d*x + 1 /2*c)^2 + a))^2 - a)*sqrt(-a)*a*sgn(cos(d*x + c))))/d
Timed out. \[ \int \frac {\cot ^2(c+d x)}{(a+a \sec (c+d x))^{5/2}} \, dx=\int \frac {{\mathrm {cot}\left (c+d\,x\right )}^2}{{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^{5/2}} \,d x \]